#pragma once
#include <string>
#include <iostream>

using namespace std;

class Customer
{
public:
	Customer(void);
	Customer(string name, int number){this->name = name, this->number = number;}
	~Customer(void);
	string GetName(){return name;}
	int GetNumber(){return number;}
	void SetName(string name){this->name = name;}
	void SetNumber(int number){this->number = number;}
	// Customer=(name,number)
	friend ostream &operator <<(ostream &o, const Customer &c)
	{
		o << "Customer=(" << c.name << "," << c.number << ")" << endl;
		return o;
	}
	friend istream &operator >>(istream &i, Customer &c)
	{
		string s;
		getline(i,s,'(');
		getline(i,c.name,',');
		i >> c.number;
		getline(i,s);
		return i;
	}
private:
	int number;
	string name;
};

